package com.situ.ssh.entity;

import org.hibernate.criterion.DetachedCriteria;

public class SearchCondition {
    private Integer page;//第几页
    private Integer limit;// 每页有多少条数据
    private DetachedCriteria detachedCriteria;//封装搜索条件

    public SearchCondition() {
    }

    public SearchCondition(Integer page, Integer limit, DetachedCriteria detachedCriteria) {
        this.page = page;
        this.limit = limit;
        this.detachedCriteria = detachedCriteria;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public DetachedCriteria getDetachedCriteria() {
        return detachedCriteria;
    }

    public void setDetachedCriteria(DetachedCriteria detachedCriteria) {
        this.detachedCriteria = detachedCriteria;
    }
}
